package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the plannedreturn database table.
 * 
 */
@Entity
@Table(name="plannedreturn")
@NamedQuery(name="Plannedreturn.findAll", query="SELECT p FROM Plannedreturn p")
public class Plannedreturn implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String prid;

	private BigDecimal prmoney;

	@Temporal(TemporalType.DATE)
	private Date prtime;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cid")
	private Customer customer;

	//bi-directional many-to-one association to Order
	@ManyToOne
	@JoinColumn(name="orderid")
	private Order order;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staffid")
	private Staff staff;

	public Plannedreturn() {
	}

	public String getPrid() {
		return this.prid;
	}

	public void setPrid(String prid) {
		this.prid = prid;
	}

	public BigDecimal getPrmoney() {
		return this.prmoney;
	}

	public void setPrmoney(BigDecimal prmoney) {
		this.prmoney = prmoney;
	}

	public Date getPrtime() {
		return this.prtime;
	}

	public void setPrtime(Date prtime) {
		this.prtime = prtime;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Order getOrder() {
		return this.order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}